/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Data.Diagram;
import java.awt.Graphics;
import java.awt.Graphics2D;


/**
 *
 * @author Sean
 */
public class Connector extends Diagram{
    private int x1;
    private int x2;
    private int y1;
    private int y2;

    public Connector(int x1, int y1, int x2, int y2) {
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }

    public void draw(Graphics g){
        Graphics2D g2 = (Graphics2D) g;
        g2.drawLine(x1, y1, x2, y2);
    }

}
